<div class="table-body">
    <table id="table" lay-filter="table"></table>
</div>
<script type="text/javascript">
    layui.use(['element','laydate','form','table'], function(){
        var element = layui.element; 
        
        layui.table.render({
                id: 'table'
                ,elem: '#table'
                ,title: '微信对账明细表'
                ,toolbar: '#toolbarBilling' //开启头部工具栏，并为其绑定左侧模板
                ,defaultToolbar: []
                ,totalRow: true
                ,page: false //开启分页
                ,url: "{:url('Report/billDetailfds')}?date={$date}&hour={$hour}"
                ,limit:'1000'
                ,cols: [[ //表头 
                    {field: 'source_id', title: '订单号', width:260, align:'center'}
                    ,{field: 'money', title: '金额', width:160, totalRow: true}
                    ,{field: 'sysstatus', width:160, title: '系统订单状态'}
                    ,{field: 'total_amount', width:160, title: '微信金额', totalRow: true}
                    ,{field: 'paystatus', width:160, title: '微信订单状态'}
                ]]
            });
    });

</script>
